import request from '@/utils/request'
import axios from 'axios'

// 获取收藏列表
export const getCollect = () => {
  return request({
    methods: 'get',
    url: '/user/favorites'
  })
}

// 获取房屋管理
export const getRent = () => {
  return request.get('/user/houses')
}

// 首页轮播图
export const getImgs = () => {
  return request.get('/home/swiper')
}

// 城市列表
export const getCityList = (data) => {
  return request.get('/area/city', {
    params: data
  })
}

// 热门城市
export const getHotCity = () => {
  return axios({
    method: 'GET',
    url: '/area/hot'
  })
}
